package com.sfac.springCloudAccount.service;

import org.example.test.entity.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author jzq
 * @date 2022/9/5 11:32
 */
@Component
@FeignClient(name = "client-test")
public interface TestFeignClient {

    /**
     * /api/test/city/2259 ---- get
     */
    @GetMapping("/api/test/city/{cityId}")
    City getCityByCityId(@PathVariable int cityId);

}


